package com.ddwanglife.lamda;

import java.util.stream.IntStream;
@FunctionalInterface
interface Interface {
    int doubleNum(int i);

    default int add(int x ,int y){
        return x+y;
    }
}
public class StreamDemo {
    public static void main(String[] args) {
        int[] nums = {-100,100,200};
//        parallel 可以并行处理
        int min = IntStream.of(nums).parallel().min().getAsInt();
        System.out.println(min);
    }
}
